import query from '@dfeidao/atom-nodejs/db/query';
import { IncomingHttpHeaders } from 'http';
import { productid, systemid } from '../../atom/config';


// tslint:disable-next-line:no-empty-interface
interface Message {
}


export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
		const q = query(action_id, session_id, systemid);
		q.prepare('dept', ['deptname', 'department_no'], { productid }, 200, 1, [], []);
		q.prepare('asset_classification', ['asset_classification_no', 'asset_classification_name'], { productid }, 200, 1, [], []);
		const [dt1, dt2] = await q.exec();
		return { dt1, dt2 };
}
